﻿using ELTE.SEM.Data.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ELTE.SEM.Data.Repository
{
    public interface IUsersRepository
    {
        bool HasUser(string UserName);
        
        bool RegisterUser(User user);

        User Login(string userName, string password);

        List<UserViewModel> GetUsersAndRoles();

        int GetUserId(string userName);

        List<UserRole> GetAvailableUserRoles();

        UserRole GetRoleById(int id);
    }
}
